package springBoot_dzfpxt.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import springBoot_dzfpxt.entity.QiyecaozuoTable;
import springBoot_dzfpxt.entity.QuanxianTable;
import springBoot_dzfpxt.rpository.QiyecaozuoTableRepository;

@Service
public class QiyecaozuoTableService {

	@Autowired
	private QiyecaozuoTableRepository qiyecaozuoDAO;
	
	public void save(QiyecaozuoTable table) {
		// TODO Auto-generated method stub
		qiyecaozuoDAO.save(table);
	}

	public Page<QiyecaozuoTable> findAll(Pageable pageable) {
		// TODO Auto-generated method stub
		return qiyecaozuoDAO.findAll(pageable);
	}

	public Page<QiyecaozuoTable> findAll(Specification buildSpec, Pageable pageable) {
		// TODO Auto-generated method stub
		return qiyecaozuoDAO.findAll(buildSpec, pageable);
	}

}
